<template>
    <div>
        <van-swipe 
            :autoplay="2000"
            :width="375"
            :height="173"
            indicator-color="#ffffff"
        >
        <van-swipe-item v-for="(image, index) in images" :key="index">
            <img v-lazy="image" />
        </van-swipe-item>
        </van-swipe>
    </div>
</template>

<script>

import Vue from 'vue';
import { Lazyload } from 'vant';

Vue.use(Lazyload);

export default {
    
    data() {
        return {
        images: [
            'http://img.vnasi.com//attachment/achimg/201812/5c22e8a43a352.jpg',
            'http://img.vnasi.com//attachment/achimg/201901/5c32c8d8981d8.jpg',
            'http://img.vnasi.com//attachment/achimg/201901/5c3ef494b9f02.jpg',
            'http://img.vnasi.com//attachment/achimg/201901/5c3fe15e7635b.jpg'
        ],
        };
    },
    };
</script>

<style lang="less" scoped>

img{
    width: 100%;
    height: 100%;
}
</style>